package com.ruoyi.system.frontierEvent.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.ruoyi.system.frontierEvent.bo.TEventQueryBo;
import com.ruoyi.system.frontierEvent.domain.TEvent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.frontierEvent.vo.TEventVo;
import com.ruoyi.system.mobile.vo.EventVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 案件信息Mapper接口
 *
 * @author ruoyi
 * @date 2021-05-19
 */
public interface TEventMapper extends BaseMapper<TEvent> {
    /**
     * 查询记录
     *
     * @param query
     * @return
     */
    List<TEventVo> listEventInfoSourceStatistics(@Param("query") TEventQueryBo query);

    List<TEventVo> listViolationStatistics(@Param("query") TEventQueryBo query);

    List<TEventVo> listViolationStatisticsCh(Long id);

    List<TEventVo> typeStatistics(@Param("query") TEventQueryBo query);

    List<TEventVo> analysisStatistics(@Param("query") TEventQueryBo query);

    List<TEventVo> policeInformationStatistics(@Param("query") TEventQueryBo query);

    List<TEventVo> policeLevelStatistics(@Param("query") TEventQueryBo query);

    List<TEventVo> querypPatrolList(@Param("operatorUserId") Long operatorUserId, @Param("receiveUserId") Long receiveUserId, @Param("evtState") String evtState);

    List<TEventVo> querypList(@Param("query") TEventQueryBo query);


    List<TEventVo> queryAuditList(@Param("query") TEventQueryBo query);

    List<TEventVo> queryAuditListForMap(@Param("query") TEventQueryBo query);

    int updateAlarmByIdForIssue(@Param("alarmId") Long alarmId, @Param("evtId") Long evtId, @Param("evtSource") String evtSource);

    List<TEventVo> querypListForExport(@Param("query") TEventQueryBo query);
}
